package com.jzo2o.orders.manager.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.orders.base.model.domain.OrdersCanceled;

/**
 * <p>
 *  订单取消服务类
 * </p>
 *
 * @author itcast
 * @since 2023-08-19
 */
public interface IOrdersCanceledService extends IService<OrdersCanceled> {
   /**
     * 通过MQ取消订单
     * @param id  订单id
     */
    void CancelOrderByMq(Long id);

    /**
     * 取消订单
     * @param userId 订单id
     * @param cancelReason 取消原因
     */
    void cancelOrder(Long userId, String cancelReason);
    /**
     * 退款成功
     * @param refundInfo 退款信息
     */
    void refundSuccess(String refundInfo);
}
